﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zxb.DayWork.Core
{
    public class Logger
    {
        private static log4net.ILog infoLog;

        private static object lockObj = new object();

        public static log4net.ILog InfoLog
        {
            get
            {
                if (infoLog == null)
                {
                    lock (lockObj)
                    {
                        if (infoLog == null)
                        {
                            log4net.Config.XmlConfigurator.Configure();
                            infoLog = log4net.LogManager.GetLogger("loginfo");
                        }
                    }
                }
                return infoLog;
            }
        }
    }
}
